//package util;
//
//import java.io.BufferedInputStream;
//import java.io.BufferedReader;
//import java.io.File;
//import java.io.FileInputStream;
//import java.io.IOException;
//import java.io.InputStream;
//import java.io.InputStreamReader;
//import java.io.PrintStream;
//import java.io.Reader;
//
//import analyzers.SpellingTokenizer;
//
//public class DictionaryCleaner {
//	public static void main(String[] args) throws IOException {
//		InputStream is = new BufferedInputStream(new FileInputStream("resources/pt_BR.dic"));
//		Reader reader = new InputStreamReader(is, "ISO-8859-1");
//		BufferedReader bf = new BufferedReader(reader);
//		PrintStream p = new PrintStream(new File("resources/ptbr.dic"));
//
//		while (true) {
//			String line = bf.readLine();
//			if (line == null) {
//				break;
//			}
//			line = line.trim();
//			int i = line.indexOf("/");
//			if (i == -1)
//				i = line.length();
//			String adds = SpellingTokenizer.unAccent(line.substring(0, i));
//			String[] parts = adds.split("-");
//			System.out.println("LINE: <" + line + ">");
//			for (String part : parts) {
//				part = part.toLowerCase();
//				if (part.length() > 2) {
//					p.append(part + "\n");
//					System.out.println("ADD: <" + part + ">");
//				}
//			}
//		}
//		bf.close();
//		p.flush();
//		p.close();
//	}
//}
